<?php
$account_id = $this->session->userdata('doggy.id');
$account_name = $this->session->userdata('account_name');
echo $erreur;
?>
<?php if($total > 0){?>
<div id="nouveaux_membres">
<div class="titre_home" style="text-transform: uppercase;">Résultats</div>
    <table width="100%" class="list">
        <?php foreach ($search_result as $aRow): ?>
        <?php
            $image_ava = './doggy_avatar/images/' . $aRow['avatar'];
            if (file_exists($image_ava) && $aRow['avatar'] != null) {
                $image_ava = base_url() . 'doggy_avatar/images/' . $aRow['avatar'];
            } else {
                $image_ava = base_url() . 'assets/noimage.gif';
            } ?>
            <tr>
                <td width="20%" align="center"><div align="center" style="width: 50px;height: 50px;background: transparent">
                    <a href="<?php echo site_url('home/compte/' . $aRow['id']); ?>"><img src="<?php echo $image_ava; ?>" align="middle" border="0" style="max-width: 50px;max-height: 50px" alt=""/></a>
                </div></td>
                <td style="padding-left: 20px;">
                        <a style="color: #3B5998;" href="<?php echo site_url('home/compte/' . $aRow['id']); ?>">
                        <span class="noun"><?php echo $aRow['account_name']; ?></span>
                        </a></td>
                <td width ="20%" align="center"><a href="<?php echo site_url('home/compte').'/'.$aRow['id']?>">Voir détails</a></td>
            </tr>
        <?php endforeach; ?>
            </table>
    <?php echo $pagination; ?>
</div>
<?php }else{?>
<h2>Désolé! Il n'y a aucun résultat correspondant à votre recherche.</h2>
<?php }?>
<!--END wrapper-content-->